package com.hikw.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 服务提供者控制
 * @ClassNmae: ProviderController
 * @Author: hy
 * @DateTime: 2021-07-26 14:53
 **/
@RestController
@Slf4j
public class ProviderController {

    @Value("${server.port}")
    private String port;

    //获取服务端口
    @GetMapping("/provider/getPort")
    public String getPort() {
        log.info("当前端口号：{}", port);
        return port;
    }
}
